//package com.hc.ftp;
//
//import android.app.Activity;
//import android.content.Intent;
//import android.content.SharedPreferences;
//import android.os.Bundle;
//import android.os.Environment;
//import android.view.View;
//
//public class ReActivity extends Activity {
//   
//	@Override
//	protected void onCreate(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//        setContentView(R.layout.gps);
//        initParams();
//        String state = Environment.getExternalStorageState();
//        String path = Environment.getExternalStorageDirectory().getPath();
//        String path1 = Environment.getRootDirectory().getAbsolutePath();
//        System.out.println("--state:"+state+"----path:"+path+"---rootPath:"+path1);
//        startService();
//	}
//	
//	public void vie(View v) {
//		Intent intent = new Intent(this, ServerControlActivity.class);
//		startActivity(intent);
//	}
//	public final static String USERNAME = "username";
//	public final static String PASSWORD = "password";
//	public final static String PORTNUM = "portNum";
//	public final static String CHROOTDIR = "chrootDir";
//	public final static String ACCEPT_WIFI = "allowWifi";
//	public final static String ACCEPT_NET = "allowNet";
//	public final static String STAY_AWAKE = "stayAwake";
//	
////	public void initParams() {
////		SharedPreferences settings = getSharedPreferences(
////				Defaults.getSettingsName(), Defaults.getSettingsMode());
////		SharedPreferences.Editor editor = settings.edit();
////		
////		editor.putString(USERNAME, "aa");
////		editor.putString(PASSWORD, "a");
////		editor.putInt(PORTNUM, 2121);
////		editor.putString(CHROOTDIR, "/mnt/sdcard");
////		editor.putBoolean(ACCEPT_WIFI, true);
////		editor.putBoolean(ACCEPT_NET, false);
////		editor.putBoolean(STAY_AWAKE, false);
////		editor.commit();
////	}
////	
////	public void startService() {
////		Intent intent = new Intent(this, FTPServerService.class);
////		this.startService(intent);
////	}
////	
////	public void go(View v) {
////		Intent intent = new Intent(this, FTPServerService.class);
////		this.stopService(intent);
////	}
//}
